<% @page_title = "My Schools" %>
<%= render :partial => 'users/menu' %>

<div class="column span-16 prepend-3 last">

<h3>My Schools</h3>

<hr />

<% for school in @schools %>
    <h4><b><%=h school.name %></b> <%=h school.city %><% unless school.state.blank? %>, <%=h school.state %><% end %></h4>
    <h4><%=h school.degree.name %> in <%=h school.field_of_study %> <%=h year(school.start_date) %> to <%=h year(school.end_date) %></h4>
    <p><span class="edit"><%= link_to 'Edit', edit_school_path(school) %></span> <span class="delete"><%= link_to 'Delete', school_path(school), :confirm => 'Are you sure?', :method => :delete %></span></p>

<% end %>

<% if @schools.empty?  %>
  <p>You have not created any schools yet.</p>
<% end %>

<hr />

<%= button_to 'Add a New School', new_school_path, :method => :get %>

</div>
